package com.weitu.permission.resource.service;

import com.weitu.base.entity.JsonTreeData;
import com.weitu.permission.resource.entity.Resource;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ResourceService {
    int deleteByPrimaryKey(String id);

    int insertSelective(Resource record);

    List<Map> selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Resource record);

    List<Resource> queryTreeList(Map map);

    int queryTreeCount(Map map);

    Resource selectById(String id);

    List<Map> selectResourcesByUserId(Map map);

    List<Map> selectAllResourcesByUserId(String name, String deptId);

    List<JsonTreeData> selectAllResourcesByAuthorityId(String authorityId);

    List<Map> selectAllButtonsByParentId(String parentId, String name, String deptId);

    List<JsonTreeData> selectAllResourcsById(Map map);

    Resource selectByCode(String code);

    List<Map> selectAllByUserId(Map map);
}